/**
 * banner管理相关接口
 */

 import { Request, Response } from 'express';

 let data = [
   {position:'1',img:'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',url:'',sort:5,id:1},
   {position:'2',img:'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',url:'',sort:5,id:2},
 ]

 const getListRequest = (req: Request, res: Response) => {
   res.json(data);
 };
 
 const updateRequest = (req:Request,res:Response) => {
  res.end('更新OK')
 }

 const deleteRequest = (req:Request,res:Response) => {
  res.end('删除OK')
}
const addRequest = (req:Request,res:Response) => {
  res.end('添加OK')
}
 
 export default {
   'GET /api/banner/list': getListRequest,
   'POST /api/banner/update': updateRequest,
   'POST /api/banner/delete':deleteRequest,
   'POST /api/banner/add':addRequest,
 };
 